import request from '@/utils/request'

// 查询排班列表
export function listScheduling(query) {
  return request({
    url: '/tranShort/scheduling/list',
    method: 'get',
    params: query
  })
}

// 查询排班详细
export function getScheduling(id) {
  return request({
    url: '/tranShort/scheduling/' + id,
    method: 'get'
  })
}

// 新增排班
export function addScheduling(data) {
  return request({
    url: '/tranShort/scheduling',
    method: 'post',
    data: data
  })
}

// 修改排班
export function updateScheduling(data) {
  return request({
    url: '/tranShort/scheduling',
    method: 'put',
    data: data
  })
}

// 删除排班
export function delScheduling(id) {
  return request({
    url: '/tranShort/scheduling/' + id,
    method: 'delete'
  })
}

// 导出排班
export function exportScheduling(query) {
  return request({
    url: '/tranShort/scheduling/export',
    method: 'get',
    params: query
  })
}

// 查询排班任务详细
export function getSchedulingTask(id) {
  return request({
    url: '/tranShort/scheduling/' + id,
    method: 'get'
  })
}
// 获取当天排班详情接口
export function getSchedulingDay(id) {
  return request({
    url: '/tranShort/scheduling/getSchedulingDay',
    method: 'get'
  })
}

// 修改排班
export function editScheduling(data) {
  return request({
    url: '/tranShort/scheduling/editScheduling',
    method: 'post',
   data
  })
}
// 叫哨
export function manualSend(data) {
  return request({
    url: '/wristlet/manualSend',
    method: 'post',
   data
  })
}
